package com.augurit.gzcgwsp.qyzz.dao;

import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.gzcgwsp.qyzz.entity.YwRqQyzzAzWxRyZs;
/**
 * /**
 *  企业资质--燃气燃烧器具安装维修人员持证dao类
 * @author 张军
 *
 */
@Repository
public class YwRqQyzzAzWxRyZsDao extends BaseDao<YwRqQyzzAzWxRyZs, Long> {

	/**
	 * 查询燃气燃烧器具安装维修人员持证
	 * @param qyid
	 * @param acceptNo
	 * @return
	 */
	public List<YwRqQyzzAzWxRyZs> getAzWxRyZs(long qyid, String acceptNo) {
	Session session=this.getSession();
	Criteria criteria=session.createCriteria(YwRqQyzzAzWxRyZs.class);
	criteria.add(Restrictions.eq("qyid", qyid));
	criteria.add(Restrictions.eq("acceptNo", acceptNo));
	return criteria.list();
	}
}